{% extends "基础.html" %}

{% block 标题 %}
  草蟒问答 - 登录
{% endblock %}

{% block 头部 %}
  
{% endblock %}

{% block 主体 %}
<div class="row">
  <div class="col"></div>
  <div class="col-6">
  <form method="post" action="{{ 构造url('用户.登录') }}">
    {{ 表单.csrf_token }}
    <div class="mb-3 text-danger">
      {% for msg in 获取闪现消息々() %}
      <p>{{ msg }}</p>
      {% endfor %}
    </div>
  <div class="mb-3">
    <label for="电子邮箱" class="form-label">电子邮箱</label>
    <input type="email" class="form-control" name="电子邮箱" aria-describedby="emailHelp">
    <div class="mb-3 text-danger">
      {% for msg in 表单.电子邮箱.错误々 %}
      <p>{{ msg }}</p>
      {% endfor %}
    </div>
  </div>
  <div class="mb-3">
    <label for="密码" class="form-label">密码</label>
    <input type="password" class="form-control" name="密码">
    <div class="mb-3 text-danger">
      {% for msg in 表单.密码.错误々 %}
      <p>{{ msg }}</p>
      {% endfor %}
    </div>
  </div>
  <div class="d-grid">
    <button type="submit" class="btn btn-primary">立即登录</button>
  </div>
  </form>
  </div>
  <div class="col"></div>
</div>
{% endblock %}